-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
TST: Replace ensure_clean_store with temp_file in test_time_series.py #62652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Replace ensure_clean_store utility function with the temp_file pytest fixture in pandas/tests/io/pytables/test_time_series.py. Changes: - Remove import of ensure_clean_store from pandas.tests.io.pytables.common - Add HDFStore to pandas imports - Replace setup_path parameter with temp_file in all test functions - Replace context manager usage of ensure_clean_store(setup_path) with HDFStore(temp_file) Contributes to issue pandas-dev#62435
“If the test failure is unrelated to my refactor, please let me know if further changes are needed. Happy to make updates if necessary!” |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored the import datetime line at the top of the file as requested for code style compliance. All changes and feedback from the previous review have been addressed. Waiting for CI checks to complete.
Restored the import datetime line as requested. All feedback addressed and waiting for CI checks |
Looks like now you've made a bunch of whitespace changes in |
Restore original formatting with proper blank lines between methods and sections to keep the PR clean and focused on the actual test changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All unintended whitespace changes have been reverted in pandas/io/excel/_xlsxwriter.py. The PR is now clean and focused only on the meaningful changes in test_time_series.py.
Thanks @VYaswanthKumar |
…pandas-dev#62652) Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
…pandas-dev#62652) Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Replace ensure_clean_store utility function with the temp_file pytest fixture in pandas/tests/io/pytables/test_time_series.py.
Changes:
Contributes to issue #62435
ensure_clean
utility function with thetemp_file
pytest fixture #62435 (contributes to this issue)doc/source/whatsnew/vX.X.X.rst
file (not applicable - test refactoring only)